package app.fugema.shop.main.order.model;


import com.base.common.view.adapter.bean.FooterBean;

import app.fugema.shop.main.center.model.GiftOrderBean;


public class OrderPayFootBean extends FooterBean
{

    private long orderId;

    private String orderDate;

    private String payDate;

    private String PaymentType;

    public long getOrderId()
    {
        return orderId;
    }

    public void setOrderId(long orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderDate()
    {
        return orderDate;
    }

    public void setOrderDate(String orderDate)
    {
        this.orderDate = orderDate;
    }

    public String getPayDate()
    {
        return payDate;
    }

    public void setPayDate(String payDate)
    {
        this.payDate = payDate;
    }

    public String getPaymentType()
    {
        return PaymentType;
    }

    public void setPaymentType(String paymentType)
    {
        PaymentType = paymentType;
    }

    public static OrderPayFootBean getOrderFootByOrderInfo( TheOrder orderInfo )
    {
        OrderPayFootBean footer = new OrderPayFootBean();
        footer.setOrderId( orderInfo.getId() );
        footer.setOrderDate( orderInfo.getOrderDate() );
        footer.setPayDate( "" );
        footer.setPaymentType( orderInfo.getPaymentType() );
        return footer;
    }

    public static OrderPayFootBean getOrderFootByGiftOrder( GiftOrderBean orderInfo )
    {
        OrderPayFootBean footer = new OrderPayFootBean();
        footer.setOrderId( orderInfo.getId() );
        //.replace("T"," ")
        footer.setOrderDate( orderInfo.getOrderDateStr() );
        footer.setPayDate( orderInfo.getOrderDate().replace("T"," ") );
        footer.setPaymentType( "" );
        return footer;
    }

}
